<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE>
<html>
<head>

<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<!--  -->
<!--[if lt IE 9]>
<script type="text/javascript" src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script type="text/javascript" src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/css3pie/2.0beta1/PIE_IE678.js"></script>
<![endif]-->
<!--[if IE 7]>
<link href="http://www.bootcss.com/p/font-awesome/assets/css/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<script type="text/javascript" src="systemJs/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<link href="systemStyle/H-ui.css" rel="stylesheet" type="text/css" />
<link href="systemStyle/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="plugin/font/font-awesome.min.css"  rel="stylesheet" type="text/css"	 />


<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="systemJs/H-ui.js"></script>
<script type="text/javascript" src="systemJs/H-ui.admin.js"></script>

<script type="text/javascript" src="systemJs/Validform_v5.3.2_min.js"></script>

<script type="text/javascript" src="plugin/layer/layer.min.js"></script>
<script type="text/javascript" src="plugin/layer/extend/layer.ext.js"></script>
	
<script type="text/javascript" src="systemJs/aex_admin.js"></script>





<title>${webTitle}网站管理后台</title>
</head>

<body>
	
	<div class="pd-20 ">
		<form class="Huiform mf1"	action="manage/categoryManager_updateCategoryOrderBy.do" method="post">
		<h3  class="text-c">小组排序</h3>
			<table width="100%" cellpadding="10" cellspacing="2" id="sameGradeTab" class='table table-border table-bordered radius '>
				<tr>
					<th>序号</th>
					<th>小组名称</th>
					<th>操作</th>
				</tr>
				<c:forEach var="seamCate" items="${seamCates }">
							<tr>
								<td>${seamCate.acOrderBy }</td>
								<td>${seamCate.acName }</td>
								<td><a href="javascript:;;" class="upbt">上移</a> <a
									href="javascript:;;" class="downbt">下移</a></td>
							</tr>
				</c:forEach>
			</table>
			<!-- 排序这个提交按钮不能放在表格内部！ -->
			<div class="text-c"  ><button class="btn btn-success radius " type="submit">	确定	</button></div>
		</form>
	</div>
	<script type="text/javascript">
		$(".mf1").Validform(
				{
					ajaxPost : true,
					tiptype : 3,
					beforeSubmit : function(curform) {
						var trs = $("#sameGradeTab").find("tr");
						var ids = "";
						for (var i = 1; i < trs.length; i++) {
							ids += trs.eq(i).find("td").eq(0).text() + ",";
						}
						$(".mf1").attr("action", $(".mf1").attr("action")
								+ "?cateSeq=" + ids);
					}
				});
	</script>
</body>

</html>
